<!--
*Author：DGZ
 *Contact：jiduxiong@dagongzao.com
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *业务请在@/extension/bizappproject/recycled_material_ingredient_record/Recycled_Material_Ingredient_Record.jsx此处编写
 -->
<template>
    <view-grid ref="grid"
               :columns="columns"
               :detail="detail"
               :details="details"
               :editFormFields="editFormFields"
               :editFormOptions="editFormOptions"
               :searchFormFields="searchFormFields"
               :searchFormOptions="searchFormOptions"
               :table="table"
               :extend="extend">
    </view-grid>
</template>
<script>
    import extend from "@/extension/bizappproject/recycled_material_ingredient_record/Recycled_Material_Ingredient_Record.jsx";
    import { ref, defineComponent } from "vue";
    export default defineComponent({
        name: "Recycled_Material_Ingredient_Record",
        setup() {
            const table = ref({
                key: "Id",
                footer: "Foots",
                cnName: "回收材料配料记录",
                name: "recycled_material_ingredient_record/Recycled_Material_Ingredient_Record",
                newTabEdit: false,
                url: "/Recycled_Material_Ingredient_Record/",
                sortName: "Id"
            });
            const editFormFields = ref({"AllyTopId":"","ProductId":"","ProductQty":"","ProductUomId":"","LotIdsStr":"","LotId":"","CreateDate":""});
            const editFormOptions = ref([[{"title":"合金","field":"AllyTopId"},
                               {"title":"产品","field":"ProductId"},
                               {"title":"数量","field":"ProductQty","type":"decimal"}],
                              [{"title":"产品计量单位","field":"ProductUomId"},
                               {"title":"产出批次信息","field":"LotIdsStr"},
                               {"title":"批次/序列号","field":"LotId"},
                               {"title":"创建时间","field":"CreateDate"}]]);
            const searchFormFields = ref({"AllyTopId":"","ProductId":""});
            const searchFormOptions = ref([[{"title":"产品","field":"ProductId","type":"like"},{"title":"合金","field":"AllyTopId","type":"like"}]]);
            const columns = ref([{field:"Id",title:"键",type:"bigint",width:110,hidden:true,readonly:true,require:true,showOverflowTooltip:true,align:"left"},
                       {field:"AllyTopId",title:"合金",type:"string",sort:true,width:150,showOverflowTooltip:true,align:"left"},
                       {field:"ProductId",title:"产品",type:"string",sort:true,width:150,showOverflowTooltip:true,align:"left"},
                       {field:"ProductQty",title:"数量",type:"decimal",sort:true,width:30,showOverflowTooltip:true,align:"left"},
                       {field:"ProductUomId",title:"产品计量单位",type:"string",sort:true,width:50,showOverflowTooltip:true,align:"left"},
                       {field:"LotIdsStr",title:"产出批次信息",type:"string",sort:true,width:150,showOverflowTooltip:true,align:"left"},
                       {field:"LotId",title:"批次/序列号",type:"string",sort:true,width:150,showOverflowTooltip:true,align:"left"},
                       {field:"CreateDate",title:"创建时间",type:"string",sort:true,width:150,showOverflowTooltip:true,align:"left"},
                       {field:"IsValid",title:"是否有效(0:否,1:是)",type:"int",width:110,hidden:true,require:true,showOverflowTooltip:true,align:"left"},
                       {field:"Remarks",title:"备注",type:"string",width:110,hidden:true,showOverflowTooltip:true,align:"left"},
                       {field:"CreateId",title:"创建人ID",type:"bigint",width:80,hidden:true,require:true,showOverflowTooltip:true,align:"left"},
                       {field:"Creator",title:"创建人名",type:"string",width:100,hidden:true,showOverflowTooltip:true,align:"left"},
                       {field:"CreateTime",title:"创建时间",type:"datetime",width:110,hidden:true,showOverflowTooltip:true,align:"left"},
                       {field:"ModifyId",title:"修改人ID",type:"bigint",width:80,hidden:true,showOverflowTooltip:true,align:"left"},
                       {field:"Modifier",title:"修改人名",type:"string",width:100,hidden:true,showOverflowTooltip:true,align:"left"},
                       {field:"ModifyTime",title:"修改时间",type:"datetime",width:110,hidden:true,showOverflowTooltip:true,align:"left"}]);
            const detail = ref({columns:[]});
            const details = ref([]);
            return {
                table,
                extend,
                editFormFields,
                editFormOptions,
                searchFormFields,
                searchFormOptions,
                columns,
                detail,
                details
            };
        },
    });
</script>
